#include <iostream>
using namespace std;

void reverse(char str[], int l, int h)
{
	while(l < h)
	{
		swap(str[l], str[h]);
		++l;
		--h;
	}
}


int main()
{
	char str[] = "wangureyfuckyou";
	reverse(str, 0, 7);
	reverse(str, 8, 14);
	reverse(str, 0, 14);
	cout<<str<<endl;
	return 0;
}
